package com.cy.pj.sys.Dao;

import com.cy.pj.sys.pojo.CGBInformation;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

@Mapper
public interface CGBInformationDao {

    List<CGBInformation> selectUsers(CGBInformation cgbInformation);

//    @Update("update personal_information set valid=#{valid},modifiedTime=now(),modifiedUser=#{modifiedUser} " +
//            "where id=#{id} ")
//    int validById(Integer id,Integer valid,String modifiedUser);

    int insertUser(CGBInformation cgbInformation);

    CGBInformation selectById(Integer id);

    int updateUser(CGBInformation cgbInformation);

//    @Select("select * from personal_information where username=#{username}")
//    CGBInformation selectUserByUsername(String username);


}
